//
//  NIDropDown.h
//  NIDropDown
//
//  Created by Bijesh N on 12/28/12.
//  Copyright (c) 2012 Nitor Infotech. All rights reserved.
//

#import <UIKit/UIKit.h>

@class NIDropDown;
@protocol NIDropDownDelegate <NSObject>
- (void) niDropDownDelegateMethod: (NIDropDown *) sender;
- (void) selectTitle:(NSString*)title;

//下拉菜单代理
- (NSInteger)NIDropDownNumberOfSectionsInTableView:(UITableView *)tableView Column:(NSInteger)column;
-(NSInteger)NIDropDownTableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section Column:(NSInteger)column;
- (CGFloat)NIDropDownTableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath Column:(NSInteger)column;

- (UITableViewCell *)NIDropDownTableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath Column:(NSInteger)column;

- (void)NIDropDownTableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath Column:(NSInteger)column;

@end 

@interface NIDropDown : UIView <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, weak) id <NIDropDownDelegate> delegate;

- (id)initDropDown:(UIView *)bindingView X:(CGFloat)x Y:(CGFloat)y Height:(CGFloat)menuHeight;
- (void)showDropDownOfColumn:(NSInteger)column;
- (void)hideDropDown;
- (void)setMenuHeight:(CGFloat)height;

@property(nonatomic, strong) UIColor *cellBankGroundColor;
@end
























